.PHONY:all
all:ServerNetCald ClientNetCal

ServerNetCald:TcpServer.cc
	g++ -o $@ $^ -std=c++17 -ljsoncpp
ClientNetCal:TcpClient.cc
	g++ -o $@ $^ -std=c++17 -ljsoncpp

.PHONY:output
output:
	mkdir output
	mkdir -p output/bin
	mkdir -p output/conf
	mkdir -p output/log
	cp ServerNetCald output/bin
	cp ClientNetCal output/bin
	cp test.conf output/conf
	cp install.sh output/
	cp uninstall.sh output/
	tar czf output.tgz output

.PHONY:clean
clean:
	rm -rf ServerNetCald ClientNetCal output output.tgz